import React from "react";
import App from "./App";
import { BrowserRouter } from "react-router-dom";
import { createRoot } from 'react-dom/client';

const container = document.getElementById('root');
const root = createRoot(container); // 创建根节点

root.render(
  <BrowserRouter>
    <App />
  </BrowserRouter>,
);

window.root = root;
